#include "Token.h"


Token::Token(){
	this->line_id =0;
	this->type = "None";
	this->value ="";
}

Token::~Token(){};

Token::Token(int line_id, string value, string type){
	this->line_id = line_id;
	this->type = type;
	this->value = value;
}
Token::Token(const Token& t){
	this->line_id = t.line_id;
	this->type = t.type;
	this->value = t.value;
}

const Token& Token::operator= (const Token& p){
	if(this!=&p)
		this->assign(p);
	return *this;
}

const Token& Token::assign(const Token& t) {
	this->line_id = t.line_id;
	this->type = t.type;
	this->value = t.value;
	return *this;
}

string Token::getType(){
	return this->type;
}
string Token::getValue(){
	return this->value;
}
int Token::getLineId(){
	return this->line_id;
}